const express = require('express')
const router = express.Router()

const artCate_handler = require('../router_handler/artcate')
const article_handler = require('../router_handler/article')
// 获取文章分类接口
router.get('/cates',artCate_handler.getArtCates)
// 获取文章路由
router.get('/article', article_handler.getArticle)
// 根据分类id获取文章路由
router.get('/article/:id', article_handler.getArticleById)

module.exports = router